package com.yuntuzhilian.chapter2.demo5;

import com.sun.org.apache.xerces.internal.impl.xs.SchemaNamespaceSupport;

import java.util.Scanner;

/**
 * @author MrWang-shuizhishuiheshui
 * @description
 */
public class Test {
    public static void main(String[] args) {
        FindStudentName fsn=new FindStudentName();
//        System.out.println("是否找到:"+fsn.findName(2,5,"小v"));

        Scanner input=new Scanner(System.in);

        String[] names=new String[5];
        for (int i = 0; i < names.length; i++) {
            System.out.println("请输入第"+(i+1)+"个名字:");
            names[i]=input.next();
        }

        //调用添加姓名的方法,传递数组
        fsn.addNames(names);
        //展示数组
        fsn.show();

    }
}
